home *** CD-ROM | disk | FTP | other *** search
/ Pascal Super Library / Pascal Super Library (CW International)(1997).bin / MATH / NRPAS13 / BETA.DEM < prev    next >
Text File  |  1991-04-29  |  567b  |  26 lines

  1. PROGRAM d6r5(input,output,dfile);
  2. (* driver for routine BETA *)
  3. VAR
  4.    i,nval : integer;
  5.    val,w,z : real;
  6.    txt : string[13];
  7.    dfile : text;
  8.  
  9. (*$I MODFILE.PAS *)
  10. (*$I GAMMLN.PAS *)
  11.  
  12. (*$I BETA.PAS *)
  13.  
  14. BEGIN
  15.    glopen(dfile,'fncval.dat');
  16.    REPEAT readln(dfile,txt) UNTIL (txt = 'Beta Function');
  17.    readln(dfile,nval);
  18.    writeln(txt);
  19.    writeln('w':5,'z':6,'actual':16,'beta(w,z)':20);
  20.    FOR i := 1 to nval DO BEGIN
  21.       readln(dfile,w,z,val);
  22.       writeln(w:6:2,z:6:2,' ':5,val:13,' ':5,beta(w,z):13)
  23.    END;
  24.    close(dfile)
  25.  END.
  26.